package me.magicall.test.web;

import javax.servlet.jsp.el.ELException;
import javax.servlet.jsp.el.ExpressionEvaluator;
import javax.servlet.jsp.el.VariableResolver;

public class What {

	private Object convertToExpectedType(final Object value, final Class expectedType) throws ELException {
		final ExpressionEvaluator evaluator = null;
		return evaluator.evaluate("${result}", expectedType, new VariableResolver() {

			public Object resolveVariable(final String pName) throws ELException {
				return value;
			}
		}, null);
	}
}
